#include <iostream>
#include <fstream>
class String{
        private:
        int length;
        char *sPtr;
        void setString(const char*);
        public:
                friend std::ostream& operator<<(std::ostream&,const String&);
                friend std::istream& operator>>(std::istream&,String&);
                String(const char * = " ");
                String(const String&);
                ~String();
                const String& operator=(const String&);
                const String& operator!=(const String&);
                const String& operator +=(const String&);
                bool operator!()const;
                bool operator==(const String &)const;
                bool operator<(const String&)const;
                bool operator>(const String& right)const;
                bool operator!=(const String& right)const;
                bool operator <=(const String& right)const;
                bool operator >=(const String& right)const;
                char &operator[](int);
                char operator[](int)const;
                String operator()(int,int =0)const;
                int getLength()const;
};


